class BrandModelEntity {
  List<BrandModelData> data;
  int code;
  String msg;

  BrandModelEntity({this.data, this.code, this.msg});
  BrandModelEntity.fromJson(Map<String, dynamic> json) {
    if (json['data'] != null) {
      data = new List<BrandModelData>();
      (json['data']['list'] as List).forEach((v) {
        data.add(new BrandModelData.fromJson(v));
      });
    }
    code = json['code'];
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data']['list'] = this.data.map((v) => v.toJson()).toList();
    }
    data['code'] = this.code;
    data['msg'] = this.msg;
    return data;
  }
}

class BrandModelData {
  String id; //	收藏记录ID
  String brand_id; //	品牌ID
  String user_id; //	用户ID
  String collect_time; //收藏时间
  String name; //品牌名称
  String logo; //品牌logo
  String img; //	背景图
  String url; //	公司网站网址
  String contractor; //联系人
  String phone; //	联系电话
  String address; //	公司地址
  String introduce; //	品牌商介绍

  BrandModelData({
    this.id, // 收藏记录ID
    this.brand_id, //  品牌ID
    this.user_id, // 用户ID
    this.collect_time, //收藏时间
    this.name, //品牌名称
    this.logo, //品牌logo
    this.img, // 背景图
    this.url, // 公司网站网址
    this.contractor, //联系人
    this.phone, // 联系电话
    this.address, // 公司地址
    this.introduce, // 品牌商介绍
  });

  BrandModelData.fromJson(Map<String, dynamic> json) {
    id = json['id'].toString(); // 收藏记录ID
    brand_id = json['brand_id'].toString(); //  品牌ID
    user_id = json['user_id'].toString(); // 用户ID
    collect_time = json['collect_time'].toString(); //收藏时间
    name = json['name'].toString(); //品牌名称
    logo = json['logo'].toString(); //品牌logo
    img = json['img'].toString(); // 背景图
    url = json['url'].toString(); // 公司网站网址
    contractor = json['contractor'].toString(); //联系人
    phone = json['phone'].toString(); // 联系电话
    address = json['address'].toString(); // 公司地址
    introduce = json['introduce'].toString(); // 品牌商介绍

//		desc = json['desc'];
//		order = json['order'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id; // 收藏记录ID
    data['brand_id'] = this.brand_id; //  品牌ID
    data['user_id'] = this.user_id; // 用户ID
    data['collect_time'] = this.collect_time; //收藏时间
    data['name'] = this.name; //品牌名称
    data['logo'] = this.logo; //品牌logo
    data['img'] = this.img; // 背景图
    data['url'] = this.url; // 公司网站网址
    data['contractor'] = this.contractor; //联系人
    data['phone'] = this.phone; // 联系电话
    data['address'] = this.address; // 公司地址
    data['introduce'] = this.introduce; // 品牌商介绍
    return data;
  }
}
